<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><s:text name="title"/></title>
<link href="<%=request.getContextPath()%>/stage/css/inside.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/stage/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/JavaScript">
var isIE = false;
function isNUM(e){
	var iKeyCode = window.event?e.keyCode:e.which;
	if(!(((iKeyCode>= 48)&&(iKeyCode<= 57))||(iKeyCode==13)||(iKeyCode==46)||(iKeyCode==45)||(iKeyCode==37)||(iKeyCode==39)||(iKeyCode==8))){  
	    if (isIE){
	        e.returnValue=false;
	    }else {
	        e.preventDefault();   //重要 firefox是用prevenDefault()来取消事件的
	    }
	}
} 

function toreset(){
	$("#orderNo").val('');
	$("#orderDateFr").val('');
	$("#orderDateTo").val('');
	$("#orderStatus").val('-1');
	$("#buyerName").val('');
	$("#orderPriceFr").val('');
	$("#orderPriceTo").val('');
	return false;
}
</script>
</head>

<body onload="MM_preloadImages('<%=request.getContextPath()%>/stage/images/menu0_01.jpg','<%=request.getContextPath()%>/stage/images/menu0_02.jpg','<%=request.getContextPath()%>/stage/images/menu0_03.jpg','<%=request.getContextPath()%>/stage/images/menu0_04.jpg','<%=request.getContextPath()%>/stage/images/menu0_05.jpg','<%=request.getContextPath()%>/stage/images/menu0_06.jpg','<%=request.getContextPath()%>/stage/images/menu0_07.jpg')">
<div class="mainbody">
<%@ include file="head1.jsp"%>
 <div class="intermediate">
    <h1>当前位置：首页&nbsp;&gt;&nbsp;<b><FONT COLOR="#FFCC66">订单列表</FONT></b></h1>
<%@ include file="left.jsp"%>
    <div class="right">
	      <h4><img src="<%=request.getContextPath()%>/stage/images/xdd/ddlb.png" width="118" height="16" /></h4>
	      	    
	      	    
	      	    
	      	    
			<div class="jgkz" id="fdiv">
				<form action="findOrderList.action" method="post">
					<table width="98%" height="20%" align="center" cellpadding="0" cellspacing="10">
					  <tr>
					    <td width="27%" height="11%" valign="baseline"><font size="3">订单编号：</font>
					      <label>
					      	<input maxlength="20" id="orderNo" value='<s:property value="clientOrderBo.orderNo"/>' name="clientOrderBo.orderNo" type="text" class="dlk2"/>
					      </label>
					     </td>
					     
					     <td width="46%" height="11%" valign="baseline"><font size="3">下单时间：</font>
					      <label>
					      	<input id="orderDateFr" name="clientOrderBo.orderDateFr" value='<s:property value="clientOrderBo.orderDateFr"/>' class="dlk2" readonly="readonly" type="text" onclick="WdatePicker()"/>
			 				<img onclick="WdatePicker({el:'orderDateFr'})" src="<%=request.getContextPath()%>/stage/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle"/>
			 			  </label>
			 				-&nbsp;
			 			  <label>
			 				<input id="orderDateTo" name="clientOrderBo.orderDateTo" value='<s:property value="clientOrderBo.orderDateTo"/>' class="dlk2" readonly="readonly" type="text" onclick="WdatePicker()"/>
			 				<img onclick="WdatePicker({el:'orderDateTo'})" src="<%=request.getContextPath()%>/stage/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle"/>
					      </label>
					     </td>
					     <td width="27%" height="11%" valign="baseline"><font size="3">订单状态：</font>
				    	<label>
				    		<select id="orderStatus" name="clientOrderBo.orderStatus" class="dlk2"  value='<s:property value="clientOrderBo.orderStatusName"/>'>  
				     			<option value="-1">所有状态</option> 
		           				<option value="0">未处理</option>   
		           				<option value="1">部分处理</option>
		           				<option value="2">全部处理</option>   
        					</select>
				    	</label>
					     </td>
					   </tr>
					   <tr>
					    <td><font size="3">买家名称：</font>
					      <label>
					      	<input maxlength="10" id="buyerName" value='<s:property value="clientOrderBo.buyerName"/>' name="clientOrderBo.buyerName" type="text" class="dlk2"/>
					      </label>
				    	</td>
				    	<td><font size="3">订单总价：</font>
					      <label>
					      	<input maxlength="10" id="orderPriceFr" value='<s:property value="clientOrderBo.orderPriceFr"/>' name="clientOrderBo.orderPriceFr" type="text" class="dlk2" onkeypress="return isNUM(event);"/>
			 			  </label>
			 			  &nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;
			 			  <label>	
			 				<input maxlength="10" id="orderPriceTo" value='<s:property value="clientOrderBo.orderPriceTo"/>' name="clientOrderBo.orderPriceTo" type="text" class="dlk2" onkeypress="return isNUM(event);"/>
					      </label>
					     </td>
					     <td align="center" >
				    	<label>
				      		<input type="image" name="imageField2" src="<%=request.getContextPath()%>/stage/images/common/search2.gif" onchange="submit();"/>
				      	</label>
				      	<label>
				      		<input type="image" onclick="return toreset()" id="reset" src="<%=request.getContextPath()%>/stage/images/common/reset1.gif" />
				      	</label>
				      	</td>
					   </tr>
				</table>
		    </form>
			</div>
	      
	      
	      
	      
		  <div class="jgkz">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="30" align="center" class="xian_01">订单编号</td>
                <td height="30" align="center" class="xian_01">买家名称</td>
                <td height="30" align="center" class="xian_01">下单日期</td>
                <td height="30" align="center" class="xian_01">订单总价</td>
                <td height="30" align="center" class="xian_01">订单状态</td>
                <td height="30" align="center" class="xian_01_1">订单详情</td>
              </tr>
               <s:iterator value="dataList" status="u">
               <s:if test="#u.index%2!=0"><tr bgcolor="#1F1F1F"></s:if>
				<s:else><tr></s:else>
                <td width="12%" height="30" align="center" class="xian_02">&nbsp;<s:property value="orderNo"/></td>
                <td width="12%" height="30" align="center" class="xian_02">&nbsp;<s:property value="buyerName"/></td>
                <td width="12%" height="30" align="center" class="xian_02">&nbsp;<s:property value="orderDate"/> </td>
                <td width="12%" height="30" align="center" class="xian_02">&nbsp;￥<s:property value="totalFormate"/> </td>
                <td width="12%" height="30" align="center" class="xian_02">&nbsp;<s:property value="orderStatusName"/> </td>
                <td width="10%" height="30" align="center"> <a href="<%=request.getContextPath()%>/toorderdetail.action?orderid=<s:property value="cliOrdMasterId"/>" target="_blank">查看</a></td>
              </tr>
              </s:iterator>
            </table>
      </div>
        <div class="jgkz_bt" style=" margin:5px auto 0 auto">
           <ul style="height:21px;">
			 <li><jsp:include page="page.jsp"/></li>
           </ul>
      </div>
    </div>
 </div>
 <%@ include file="foot.jsp"%>
</div>
</body>
</html>
